Do you use <umb-debug> ?
# package-development
w
For the people doing active V14 Development with the new backoffice, was you aware of
<umb-debug>
If you were, do you use it or find it of any use to help discover what contexts you have available to you?
Curious to hear...
r
Nope but checking now and it is empty, does it work on all Workspace Views?.. had this for checking document data which worked
Copy code
#data :UmbDocumentDetailModel | undefined;
    constructor() {
        super();
        this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (instance) => {
            this.#data =  instance.getData()
        });
    }

    render() {
        return html`
                <uui-box headline="Debug JSON">
                    <pre>${JSON.stringify(this.#data, null, 2)}</pre>
                </uui-box>
            
        `;
    }
w
Nope does t work like that @Richard Soeteman adds a button. Will try find the doc/sample on the storybook
r
Ok works when you use seems like false is the default for the element will see coming days what it does
Looks like it doesn't include custom contexts on custom workspace views?
w
It should do
Make sure the umb debug in the right place as it will only capture contexts from child elements
m
I tried it in out when I was playing around in the early days but to be honest I havenโ€™t used it a lot - but I like that it exists ๐Ÿ™‚
w
Yep or use it like
<umb-debug visible dialog></umb-debug>
It helps show what contexts you should be able to use/consume from the parent DOM elements and see what methods and properties are there to help with discoverability
Well that was my plan with it - but just wondered if it was useful thing at all or not
s
I am building a package around this that shows this in all possible extension points, whith hopefully also the json that is used to register said extension point. All inside a mode. Had to alter the code a bit as the dialog was misbehaving a bit (might have been me) will update source when I get an approval from niels when i'm back at HQ ๐Ÿ˜
6 Views